package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Getter
@Setter
@Table(value = "vcc_clear_tran")
public class ClearTran extends BaseEntity implements Serializable {

    @Column(comment = "交易ID", value = "transaction_id")
    private String transactionId;


    @Column(comment = "用户ID", value = "user_id")
    private Long userId;

    @Column(comment = "卡号", value = "card_number")
    private String cardNumber;

    @Column(comment = "商户名", value = "merchant_name")
    private String merchantName;

    @Column(comment = "交易日期", value = "tran_date")
    private Date tranDate;

    @Column(comment = "结算日期", value = "posting_date")
    private Date postingDate;

    @Column(comment = "记账金额", value = "billing_amount")
    private BigDecimal billingAmount;

    @Column(comment = "记账币种", value = "billing_currency")
    private String billingCurrency;

    @Column(comment = "类型", value = "type")
    private String type;

    @Column(comment = "备注", value = "remark")
    private String remark;

    @Column(comment = "卡ID", value = "card_id")
    private Long cardId;

    @Column(comment = "商户币种", value = "merchant_currency")
    private String merchantCurrency;

    @Column(comment = "商户金额", value = "merchant_amount")
    private BigDecimal merchantAmount;
}
